﻿
@{
    ViewData["Title"] = "添加员工|恩腾五金ERP";
    Layout = "~/Views/Shared/_layout2.cshtml";
}
<div class="panel admin-panel">
    <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>添加员工</strong></div>
    <div class="body-content">
        <form method="post" class="form-x" action="/Employee/Add">
            <div class="form-group">
                <div class="label">
                    <label>员工姓名：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="" name="Name" data-validate="required:请输入员工姓名" />
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>员工电话：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="" name="PhoneNum" data-validate="required:请输入员工电话" />
                    <div class="tips"></div>
                </div>
            </div>


            <div class="form-group">
                <div class="label">
                    <label>员工编号：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="" name="EmpId" data-validate="required:请输入员工编号" />
                    <div class="tips"></div>
                </div>
            </div>


            <div class="form-group">
                <div class="label">
                    <label>员工邮箱：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="" name="Emaill" data-validate="required:请输入员工邮箱" />
                    <div class="tips"></div>
                </div>
            </div>


            <div class="form-group">
                <div class="label">
                    <label>员工微信：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="" name="WeChat" data-validate="required:请输入员工微信" />
                    <div class="tips"></div>
                </div>
            </div>



            <div class="form-group">
                <div class="label">
                    <label>员工用户名：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="" name="UserName" data-validate="required:请输入用户名" />
                    <div class="tips"></div>
                </div>
            </div>


            <div class="form-group">
                <div class="label">
                    <label>员工密码：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="123" name="UserPwd" data-validate="required:请输入初始化密码" />
                    <div class="tips"></div>
                </div>
            </div>


            <div class="form-group">
                <div class="label">
                    <label>员工薪资：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="" name="Sales" data-validate="required:请输入员工薪资" />
                    <div class="tips"></div>
                </div>
            </div>

            <if condition="$iscid eq 1">
                <div class="form-group">
                    <div class="label">
                        <label>员工等级：</label>
                    </div>
                    <div class="field">
                        <select name="Leave" class="input w50">
                            <option value="0">请选择员工等级</option>
                            <option value="1">老板</option>
                            <option value="2">经理</option>
                            <option value="3">主管</option>
                            <option value="4">组长</option>
                            <option value="5">普通员工</option>
                        </select>
                        <div class="tips"></div>
                    </div>
                </div>

            </if>

            <if condition="$iscid eq 1">
                <div class="form-group">
                    <div class="label">
                        <label>在职状态：</label>
                    </div>
                    <div class="field">
                        <select name="EmpStatus" class="input w50">
                           
                            <option value="1" selected>在职</option>
                            <option value="0">离职</option>
                           
                        </select>
                        <div class="tips"></div>
                    </div>
                </div>

            </if>
            <div class="clear"></div>
            <div class="form-group">
                <div class="label">
                    <label></label>
                </div>
                <div class="field">
                    <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
                </div>
            </div>
        </form>
    </div>
</div>


